home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part2 / 10382 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  816 b 

  1. Path: Empire.Net!usenet
  2. From: jb@anuxc.mv.att.com
  3. Newsgroups: comp.lang.c++
  4. Subject: ofstream or CFILE and C FILE* compatiblity
  5. Date: Thu, 07 Mar 1996 17:02:16 GMT
  6. Organization: AT&T Bell Labs
  7. Message-ID: <4hn4td$pnq@RedDragon.Empire.Net>
  8. NNTP-Posting-Host: nash1-ppp12.empire.net
  9. X-Newsreader: Forte Free Agent 1.0.82
  10.  
  11.  
  12. I'm writing a C++ program that's linked to a library
  13. written in C.    The C library does some complicated
  14. data formatting and output that I do not want to rewrite.  
  15. For certain functions the C library requires a pointer
  16. to a file as a parameter, i.e.  fn(FILE * pFile).
  17.  
  18. Is there a way to use either the C++ ofstream class or 
  19. MFC CFILE classes or some other class and somehow
  20. still pass a C file pointer to a C library function without
  21. having to use the C file i/o routines, i.e. fopen()?
  22.  
  23.  
  24.  
  25.  
  26.